home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Documentation / MPW Users - ReadMe < prev    next >
Encoding:
Text File  |  1998-07-30  |  2.6 KB  |  69 lines  |  [TEXT/MPS ]

  1. #
  2. #     File:        MPW Users - ReadMe
  3. #     Copyright:    © 1998 by Apple Computer, Inc. All rights reserved.
  4. #     Version:    Universal Interfaces 3.2, July 30, 1998
  5. #
  6. #     Usage:         Run this file in MPW.  It will generate the commands needed
  7. #                to update the running MPW to the latest Universal Interfaces.
  8. #
  9. #
  10. #    Note:        The Universal Interfaces is not a complete MPW development release.
  11. #                It only contains the headers and libraries which are in "universal"
  12. #                format and are implemented in the Mac OS.  
  13. #
  14. #                The MPW development environment comes with a number of MPW specific
  15. #                headers and libraries (e.g. CursorCtl.h, Disassembler.h, etc.) that
  16. #                are _not_ part of this Universal Interfaces package.  You can either
  17. #                wait for the next release of MPW which will integrate the 3.2
  18. #                Universal Interfaces, or run the script below to merge the 3.2
  19. #                Universal Interfaces into the MPW set.
  20. #
  21. #                You cannot just drag the CIncludes and replace MPW's ! ! !
  22. #
  23. #
  24.  
  25.  
  26. set exit 0
  27.  
  28. If "{CIncludes}"
  29.     If "{CIncludes}" =~ /(≈:)®1Interfaces:CIncludes:/
  30.         Set InterfacesAndLibrariesDir "{®1}"
  31.     End
  32. End
  33.  
  34. If !`Exists "{InterfacesAndLibrariesDir}"`
  35.     If "{ShellDirectory}"
  36.         If `Exists "{ShellDirectory}Interfaces:CIncludes:"`
  37.             Set InterfacesAndLibrariesDir "{ShellDirectory}"
  38.         Else If `Exists "{ShellDirectory}:Interfaces&Libraries:CIncludes:"`
  39.             If "{ShellDirectory}" =~ /(≈:)®1IMPW:/
  40.                 Set InterfacesAndLibrariesDir "{®1}Interfaces&Libraries:"
  41.             End
  42.         End
  43.     End
  44. End
  45.  
  46. If (!"{InterfacesAndLibrariesDir}") || (!`Exists "{InterfacesAndLibrariesDir}"`)
  47.     Echo "### Error: Could not find Interfaces&Libraries. Try setting ∂{CIncludes∂}" >dev:stderr
  48.     Exit 1
  49. End
  50.  
  51.  
  52. Set ThisScript `files "{0}" -f`
  53. If "{ThisScript}" =~ /(≈:)®1Documentation:MPW Users - ReadMe/
  54.     Set UI "{®1}"
  55. End
  56.  
  57. If (!`Exists "{UI}OpenTransport:"`) || (!`Exists "{UI}Universal:"`)
  58.     Echo "### Error: Script "{0}" not in Interfaces&Libraries folder" >dev:stderr
  59.     Exit 1
  60. End
  61.  
  62. BackUp -from "{UI}Universal:Interfaces:"                     -to "{InterfacesAndLibrariesDir}Interfaces:" -r -a                    || Echo "# No files in :Interfaces: required updating"
  63. BackUp -from "{UI}Universal:Libraries:StubLibraries:"         -to "{InterfacesAndLibrariesDir}Libraries:SharedLibraries:" -r -a    || Echo "# No files in :Libraries:SharedLibraries: required updating"
  64. BackUp -from "{UI}Universal:Libraries:Classic68kLibraries:" -to "{InterfacesAndLibrariesDir}Libraries:Libraries:" -r -a            || Echo "# No files in :Libraries:Libraries: required updating"
  65. BackUp -from "{UI}Universal:Libraries:PPCLibraries:"         -to "{InterfacesAndLibrariesDir}Libraries:PPCLibraries:" -r -a        || Echo "# No files in :Libraries:PPCLibraries: required updating"
  66.  
  67.